package com.caishi.lkx.exam.service.impl;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.caishi.lkx.exam.mapper.PkRecordsMapper;
import com.caishi.lkx.exam.model.PkRecords;
import com.caishi.lkx.exam.service.IPkRecordsService;
import org.springframework.stereotype.Component;


import java.time.LocalDateTime;
import java.util.List;

@Component
public class PkRecordsServiceImpl extends ServiceImpl<PkRecordsMapper, PkRecords> implements IPkRecordsService {

    @Override
    public Page<PkRecords> recordsPage(Page<PkRecords> page, String username, LocalDateTime startTime, LocalDateTime endTime) {
        List<PkRecords> records = baseMapper.recordsPage(page, username, startTime, endTime);
        page.setRecords(records);
        return page;
    }
}
